using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.Basic
{
  [Table("T_Review")]
    public  partial class Review
    {
       public int ApprovalStatus { get; set; } = 1;

       [ForeignKey("ProductId")]
       public long ProductId { get; set; }

   

        /// <summary>
        /// 商品ID，外键
        /// </summary>
       
       

        /// <summary>
        /// 评论日容
        /// </summary>
     
     [StringLength(50)]
      public string ReviewContent { get; set; } = "";
           

        /// <summary>
        /// 评论日期
        /// </summary>
      
      [StringLength(10)] 
       public string ReviewDate { get; set; }="";

        /// <summary>
        /// 评论ID
        /// </summary>
      
      [Key]
      [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string Reviewld { get; set; }="";

        /// <summary>
        /// 用户ID，外键
        /// </summary>
      
      [ForeignKey("UserId")]
        public long Userld { get; set; }
    }
}